package com.zuorenke.business;

import com.zuorenke.db.mybatis.ReportModelTeacherMapper;
import com.zuorenke.model.po.ReportModelTeacher;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Z.R.K
 * @description
 * @create 2019-04-14 16:57:41
 **/
@Service
public class ModelTeacherService {
	@Resource
	private ReportModelTeacherMapper reportModelTeacherMapper;
	
	public List<ReportModelTeacher> getMonthModelTeachers(String reportMonth){
		return reportModelTeacherMapper.getTeacherReportByMonth(reportMonth);
	}
	
	public void batchTeacherMonth(List<ReportModelTeacher> teacherReports){
		reportModelTeacherMapper.batchTeacherMonth(teacherReports);
	}
	
	public void delOldTeacherReport(String reportMonth){
		reportModelTeacherMapper.delOldTeacherReport(reportMonth);
	}
}
